function testSyms
%syms s t A real
% name1='first';
% name2='second';
% 
% int1=[56;45];
% int2=[22;32];
% 
% aff_form1=convertInterval(name1,int1(1,:), int1(2,:));
% aff_form2=convertInterval(name2,int2(1,:), int2(2,:));
% aff_form1
% aff_form2
% aff_form3=aff_form1+aff_form2
% interval=getIntervalFromAff_form(aff_form3);
% interval
gameModel=GameModel;
m=9;
[finalCAff, finalPayoffAff, totalCovAff] = calcAffineSg(gameModel, m);
[finalCIsg, finalPayoffIsg, totalCovIsg] = calcISG(prepareForIsg(gameModel), m);
[finalCInter, finalPayoffInter, totalCovInterv] = calcSGInterval(gameModel, m);
%[finalC3, finalPayoff3] = calcMonteCarloSg(gameModel,10, m);
IntervalPlotter.plotIsgWithAffineAndInterval(1:1:25, finalCIsg', finalCAff, finalCInter);

% 
% inter1=Interval;
% inter1.min=10;
% inter1.max=15;
% inter1.name='f1';
% inter2=Interval;
% inter2.min=12;
% inter2.max=16;
% inter2.name='f2';
% 
% affineF1=AffineForm(inter1);
% affineF2=AffineForm(inter2);
% affineF3=affineF1+affineF2;
% affineF3.form;
% int=convertToInterval(affineF3);






    function aff_form=convertInterval(name, max,min)
      e_i=sym(name);
      aff_form=(max+min)/2 + (max-min)/2 * e_i;
    end


    function interval=getIntervalFromAff_form(aff_form)
        variables=symvar(aff_form);
        var_size=length(variables);
        Upp=aff_form; Down=aff_form;
        for i=1:var_size
            Upp=subs(Upp,variables(i), 1);
            Down=subs(Down,variables(i), -1);
        end
        interval=[double(Down), double(Upp)];
    end

end